Week 3 Projects Overview: Sorting Forensics & Tideman Graphs
Project 1: Opaque Binary Sorting Forensics (Sort)
This exercise trains the software engineer in empirical behavioral forensics. The student is provided three pre-compiled executables and tasked with deducing the exact internal sorting algorithm by monitoring runtime execution complexity.
===================================================================================
SORT PROBLEM ASYMPTOTIC FORENSICS LOGIC
===================================================================================
[ Run Time Experiment ] ββ> Observe best/worst case speed ββ> Categorize Algorithm
(Random / Reversed / Sorted buffers)
===================================================================================
Project 2: Majoritarian & Instant-Runoff Voting (Plurality & Runoff)
Plurality deconstructs linear search and maximum tabulation. Runoff tracks multi-level voter preferences in a 2D matrix, actively eliminating candidates with the lowest tally and rolling their ballots over to subsequent preferences.
Project 3: The Absolute Apex Challenge β Tideman
Tideman overcomes the mathematical vulnerabilities of conventional voting systems by isolating the "Condorcet Winner"βthe single candidate who would decisively win a head-to-head election against every other candidate in the field.
===================================================================================
TIDEMAN GRAPH LOCKING PIPELINE (ACYCLIC DIRECTED GRAPH)
===================================================================================
[ Pair Tabulation ] ββ> [ Sort by Victory Margin ] ββ> [ Lock Pairs (No Cycles!) ]
===================================================================================
- The Apex Algorithmic Hurdle (lock_pairs): To prevent the formation of a closed circular graph (Cycle), developers must implement a Depth-First Search (DFS) recursive graph traversal algorithm to verify that no transitive path connects the prospective loser back to the winner before locking the directed edge.